<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
</head>
<body>
    <form th:action="@{/login}" enctype="application/x-www-form-urlencoded" method="post">
        <label for="user">用户名</label>
        <input type="text" id="user" name="user"/><br/>
        <label for="password">密码</label>
        <input type="password" id="password" name="password"/><br/>
        <input type="submit" value="提交"/>
        <input type="button" value="添加用户" onclick="window.location.href='/adduserpage'"/>
    </form>
</body>
</html>